.class Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter$UserAdapter;
.super Landroid/widget/BaseAdapter;
.source "DetailExpandableAdapter.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "UserAdapter"
.end annotation


# instance fields
.field private mBorderWidth:I

.field private mUserModels:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lcom/brixd/niceapp/model/CommonUserModel;",
            ">;"
        }
    .end annotation
.end field

.field final synthetic this$0:Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter;


# direct methods
.method public constructor <init>(Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter;Ljava/util/ArrayList;I)V
    .registers 4
    .param p3, "borderWidth"    # I
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/brixd/niceapp/model/CommonUserModel;",
            ">;I)V"
        }
    .end annotation

    .prologue
    .line 691
    .local p2, "users":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Lcom/brixd/niceapp/model/CommonUserModel;>;"
    iput-object p1, p0, Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter$UserAdapter;->this$0:Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter;

    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    .line 692
    iput-object p2, p0, Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter$UserAdapter;->mUserModels:Ljava/util/ArrayList;

    .line 693
    iput p3, p0, Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter$UserAdapter;->mBorderWidth:I

    .line 694
    return-void
.end method

.method static synthetic access$1400(Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter$UserAdapter;)Ljava/util/ArrayList;
    .registers 2
    .param p0, "x0"    # Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter$UserAdapter;

    .prologue
    .line 686
    iget-object v0, p0, Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter$UserAdapter;->mUserModels:Ljava/util/ArrayList;

    return-object v0
.end method


# virtual methods
.method public getCount()I
    .registers 2

    .prologue
    .line 698
    iget-object v0, p0, Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter$UserAdapter;->mUserModels:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .registers 3
    .param p1, "position"    # I

    .prologue
    .line 703
    iget-object v0, p0, Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter$UserAdapter;->mUserModels:Ljava/util/ArrayList;

    invoke-virtual {v0, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    return-object v0
.end method

.method public getItemId(I)J
    .registers 4
    .param p1, "position"    # I

    .prologue
    .line 708
    int-to-long v0, p1

    return-wide v0
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .registers 11
    .param p1, "position"    # I
    .param p2, "convertView"    # Landroid/view/View;
    .param p3, "parent"    # Landroid/view/ViewGroup;

    .prologue
    .line 713
    if-nez p2, :cond_1a

    .line 714
    new-instance v2, Lcom/zuiapps/suite/utils/image/RoundImageView;

    iget-object v3, p0, Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter$UserAdapter;->this$0:Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter;

    # getter for: Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter;->mContext:Landroid/content/Context;
    invoke-static {v3}, Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter;->access$1200(Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter;)Landroid/content/Context;

    move-result-object v3

    invoke-direct {v2, v3}, Lcom/zuiapps/suite/utils/image/RoundImageView;-><init>(Landroid/content/Context;)V

    .line 715
    .local v2, "userPhoto":Lcom/zuiapps/suite/utils/image/RoundImageView;
    new-instance v0, Landroid/widget/AbsListView$LayoutParams;

    iget v3, p0, Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter$UserAdapter;->mBorderWidth:I

    iget v4, p0, Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter$UserAdapter;->mBorderWidth:I

    invoke-direct {v0, v3, v4}, Landroid/widget/AbsListView$LayoutParams;-><init>(II)V

    .line 716
    .local v0, "params":Landroid/widget/AbsListView$LayoutParams;
    invoke-virtual {v2, v0}, Lcom/zuiapps/suite/utils/image/RoundImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 717
    move-object p2, v2

    .line 719
    .end local v0    # "params":Landroid/widget/AbsListView$LayoutParams;
    .end local v2    # "userPhoto":Lcom/zuiapps/suite/utils/image/RoundImageView;
    :cond_1a
    const/16 v3, 0xd

    if-ne p1, v3, :cond_3c

    .line 720
    new-instance v3, Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter$UserAdapter$1;

    invoke-direct {v3, p0}, Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter$UserAdapter$1;-><init>(Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter$UserAdapter;)V

    invoke-virtual {p2, v3}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    move-object v1, p2

    .line 730
    check-cast v1, Landroid/widget/ImageView;

    .line 731
    .local v1, "userImg":Landroid/widget/ImageView;
    const/4 v3, 0x0

    invoke-virtual {v1, v3}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 732
    const v3, 0x7f020152

    invoke-virtual {v1, v3}, Landroid/widget/ImageView;->setBackgroundResource(I)V

    .line 733
    new-instance v3, Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter$UserAdapter$2;

    invoke-direct {v3, p0, v1}, Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter$UserAdapter$2;-><init>(Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter$UserAdapter;Landroid/widget/ImageView;)V

    invoke-virtual {p2, v3}, Landroid/view/View;->post(Ljava/lang/Runnable;)Z

    .line 758
    .end local v1    # "userImg":Landroid/widget/ImageView;
    :goto_3b
    return-object p2

    .line 743
    :cond_3c
    new-instance v3, Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter$UserAdapter$3;

    invoke-direct {v3, p0, p1}, Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter$UserAdapter$3;-><init>(Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter$UserAdapter;I)V

    invoke-virtual {p2, v3}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 755
    iget-object v3, p0, Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter$UserAdapter;->this$0:Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter;

    # getter for: Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter;->mImageLoader:Lcom/nostra13/universalimageloader/core/ImageLoader;
    invoke-static {v3}, Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter;->access$1700(Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter;)Lcom/nostra13/universalimageloader/core/ImageLoader;

    move-result-object v4

    iget-object v3, p0, Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter$UserAdapter;->mUserModels:Ljava/util/ArrayList;

    invoke-virtual {v3, p1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/brixd/niceapp/model/CommonUserModel;

    invoke-virtual {v3}, Lcom/brixd/niceapp/model/CommonUserModel;->getAvatarUrl()Ljava/lang/String;

    move-result-object v5

    move-object v3, p2

    check-cast v3, Landroid/widget/ImageView;

    iget-object v6, p0, Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter$UserAdapter;->this$0:Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter;

    # getter for: Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter;->mAvatarOptions:Lcom/nostra13/universalimageloader/core/DisplayImageOptions;
    invoke-static {v6}, Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter;->access$1600(Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter;)Lcom/nostra13/universalimageloader/core/DisplayImageOptions;

    move-result-object v6

    invoke-virtual {v4, v5, v3, v6}, Lcom/nostra13/universalimageloader/core/ImageLoader;->displayImage(Ljava/lang/String;Landroid/widget/ImageView;Lcom/nostra13/universalimageloader/core/DisplayImageOptions;)V

    goto :goto_3b
.end method

.method public setData(Ljava/util/ArrayList;)V
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/brixd/niceapp/model/CommonUserModel;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 762
    .local p1, "users":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Lcom/brixd/niceapp/model/CommonUserModel;>;"
    iput-object p1, p0, Lcom/brixd/niceapp/activity/fragment/adapter/DetailExpandableAdapter$UserAdapter;->mUserModels:Ljava/util/ArrayList;

    .line 763
    return-void
.end method
